bitkeeper revision 1.1026.1.7 (40e181a1MSs1SYetts2irHVdBHHmDQ)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 29 Jun 2004 14:50:09 +0000 (14:50 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 29 Jun 2004 14:50:09 +0000 (14:50 +0000)
Fix backend type detection.

tools/xen/lib/xend/XendDomainInfo.py

index 50fcf26fe2517ae8eb086a1bf78f4c6fc158a1e6..a7e5aa3b2f2d441e260ba00b5715f322af240047 100644 (file)
@@ -626,7 +626,7 @@ class XendDomainInfo:
         """Set configuration flags if the vm is a backend for netif of blkif.
         """
         for c in sxp.children(self.config, 'backend'):
-            name = sxp.name(c)
+            name = sxp.name(sxp.child0(c))
             if name == 'blkif':
                 self.blkif_backend = 1
             elif name == 'netif':